package com.dao;

import com.model.AppVersionUpgrade;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AppVersionUpgradeMapper {
    int deleteByPrimaryKey(Long id);

//    int insert(AppVersionUpgrade record);

    int insertSelective(AppVersionUpgrade record);

    AppVersionUpgrade selectByPrimaryKey(Long id);

    List<AppVersionUpgrade> selectAll();

    List<AppVersionUpgrade> selectByCondition(AppVersionUpgrade appVersionUpgrade);

    int updateByPrimaryKeySelective(AppVersionUpgrade record);

//    int updateByPrimaryKey(AppVersionUpgrade record);

    AppVersionUpgrade selectLast();


    AppVersionUpgrade selectByApkName(@Param("apkName") String appVersion);
}